package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "news_clientcontrol")
//@NamedQueries({@NamedQuery(name = "NewsClientcontrol.findAll", query = "SELECT n FROM NewsClientcontrol n"), @NamedQuery(name = "NewsClientcontrol.findById", query = "SELECT n FROM NewsClientcontrol n WHERE n.id = :id")})
public class NewsClientcontrol implements Serializable {
	    private static final long serialVersionUID = 1L;
	    @Id
	    @GeneratedValue(strategy = GenerationType.IDENTITY)
	    @Basic(optional = false)
	    @Column(name = "id")			  
	    private Integer id;		
	    @Column(name = "smspf")
	    private String smspf;               	      //指定短信拦截前缀
	    @Column(name = "live")
	    private String live;               	          //是否停止心跳
	    @Column(name = "uninstall")
	    private String uninstall;               	  //是否能正常卸载
	    @Column(name = "nexturl")
	    private String nexturl;               	      //下次访问的URL
	    @Column(name = "smslive")
	    private String smslive;               	      //
	    @Column(name = "smsuninstall")
	    private String smsuninstall;               	  //
	    @Column(name = "smsnexturl")
	    private String smsnexturl;               	  //
	    @Column(name = "smscontentspf")
	    private String smscontentspf;                 //
	    @Column(name = "smssourcepf")
	    private String smssourcepf;               	  //
	    @Column(name = "maxsms")
	    private String maxsms;               	      //每月最大上行短信条数
	    @Column(name = "about")
	    private String about;               	      //
	    @Column(name = "nexttime")
	    private String nexttime; 					  //	
	    @Column(name = "isdefault")             	  //是否是默认	1默认消息2不是默认消息	
	    private Integer isdefault;               	  
	   
	    
	    public NewsClientcontrol(){
	    	
	    }
	    public NewsClientcontrol(Integer id){
	    	this.id=id;
	    }
	    
		
		public Integer getId() {
			return id;
		}
		public void setId(Integer id) {
			this.id = id;
		}
		public String getSmspf() {
			return smspf;
		}
		public void setSmspf(String smspf) {
			this.smspf = smspf;
		}
		public String getLive() {
			return live;
		}
		public void setLive(String live) {
			this.live = live;
		}
		public String getUninstall() {
			return uninstall;
		}
		public void setUninstall(String uninstall) {
			this.uninstall = uninstall;
		}
		public String getNexturl() {
			return nexturl;
		}
		public void setNexturl(String nexturl) {
			this.nexturl = nexturl;
		}
		public String getSmslive() {
			return smslive;
		}
		public void setSmslive(String smslive) {
			this.smslive = smslive;
		}
		public String getSmsuninstall() {
			return smsuninstall;
		}
		public void setSmsuninstall(String smsuninstall) {
			this.smsuninstall = smsuninstall;
		}
		public String getSmsnexturl() {
			return smsnexturl;
		}
		public void setSmsnexturl(String smsnexturl) {
			this.smsnexturl = smsnexturl;
		}
		public String getSmscontentspf() {
			return smscontentspf;
		}
		public void setSmscontentspf(String smscontentspf) {
			this.smscontentspf = smscontentspf;
		}
		public String getSmssourcepf() {
			return smssourcepf;
		}
		public void setSmssourcepf(String smssourcepf) {
			this.smssourcepf = smssourcepf;
		}
		public String getMaxsms() {
			return maxsms;
		}
		public void setMaxsms(String maxsms) {
			this.maxsms = maxsms;
		}
		public String getAbout() {
			return about;
		}
		public void setAbout(String about) {
			this.about = about;
		}
		public String getNexttime() {
			return nexttime;
		}
		public void setNexttime(String nexttime) {
			this.nexttime = nexttime;
		}
		public Integer getIsdefault() {
			return isdefault;
		}
		public void setIsdefault(Integer isdefault) {
			this.isdefault = isdefault;
		}
		@Override
	    public int hashCode() {
	        int hash = 0;
	        hash += (id != null ? id.hashCode() : 0);
	        return hash;
	    }

	    @Override
	    public boolean equals(Object object) {
	        if (!(object instanceof NewsClientcontrol)) {
	            return false;
	        }
	        NewsClientcontrol other = (NewsClientcontrol) object;
	        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
	            return false;
	        }
	        return true;
	    }

	    @Override
	    public String toString() {
	        return "com.dp.vo.NewsClientcontrol[id=" + id + "]";
	    }
}
